package com.lepu.app.fun.index.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class BeanIndexVideoPoint implements Serializable {

    public String ArticleCount_yygl; //用药管理
    public String ArticleCount_bkjz; //百科讲座
    public String ArticleCount_dmxl; //动漫系列
    public String CurrentTime; //时间

    public static BeanIndexVideoPoint parseListInfo(String dataString) {
        String result = "";
        BeanIndexVideoPoint beanVideo = new BeanIndexVideoPoint ();
        try {
            JSONObject jsonObject = new JSONObject(dataString);
            JSONObject obj1 = (JSONObject) jsonObject.get("Result");
            JSONObject detail = obj1.optJSONObject("DetailInfo"); //  DetailInfo

            beanVideo.ArticleCount_yygl = detail.optString("ArticleCount_yygl");
            beanVideo.ArticleCount_bkjz = detail.optString("ArticleCount_bkjz");
            beanVideo.ArticleCount_dmxl = detail.optString("ArticleCount_dmxl");
            beanVideo.CurrentTime = detail.optString("CurrentTime");

        } catch (JSONException e) {
            e.printStackTrace();
        }

        return beanVideo;
    }

}
